<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<script type="text/javascript">
  (function() {
   var po = document.createElement('script');
   po.type = 'text/javascript';
   po.async = true;
   po.src = 'https://apis.google.com/js/client:plusone.js';
   var s = document.getElementsByTagName('script')[0];
   s.parentNode.insertBefore(po, s);
 })();
function signinCallback(authResult) {
  if (authResult['status']['signed_in']) {
    // Update the app to reflect a signed in user
    // Hide the sign-in button now that the user is authorized, for example:
    document.getElementById('signinButton').setAttribute('style', 'display: none');
  } else {
    // Update the app to reflect a signed out user
    // Possible error values:
    //   "user_signed_out" - User is signed-out
    //   "access_denied" - User denied access to your app
    //   "immediate_failed" - Could not automatically log in the user
    console.log('Sign-in state: ' + authResult['error']);
  }
}
</script>
<form id="signup-form" method="post" action="/games/signup.do" name="signup-form">
	<table>
		<tr><td colspan="2" id="signup_error" width="300px" class="error"></td></tr>
		<tr><td><label for="signup_email_id"><spring:message code="label.email"/></label></td><td><input type="email" name="userName" autocomplete="on" id="signup_email_id" required="true" data-dojo-type="dijit/form/ValidationTextBox"></td></tr>
		<tr><td><label for="signup_password"><spring:message code="label.password"/></label></td><td><input type="password" name="password" autocomplete="on" id="signup_password" required="true" data-dojo-type="dijit/form/ValidationTextBox"></td></tr>
		<tr><td><label for="signup_repeat_password"><spring:message code="label.repeat"/></label></td><td><input type="password" name="repeat_password" autocomplete="on" id="signup_repeat_password" required="true" data-dojo-type="dijit/form/ValidationTextBox"></td></tr>
		<tr><td></td><td><button onclick="signup();" data-dojo-type="dijit/form/Button" type="button"><spring:message code="label.signupsubmit"/></button></td></tr>
	</table>
</form>